<template>
  <el-cascader
    style="width: 100%"
    filterable
    :options="options"
    :disabled="disabled"
    v-model="value"
    :props="{
      ...{ label: 'name', value: 'code', children: 'children', emitPath: false },
      multiple: true,
      checkStrictly: true
    }"
  />
</template>

<script setup lang="ts">
const props = defineProps({
  value: Array,
  options: Array,
  disabled: Boolean
})
const { options, value, disabled } = toRefs(props)
</script>
